


<!-- <h1>Store#index</h1>
<p>Find me in app/views/store/index.html.erb</p> -->

<% if notice %>
<p id="notice"><%= notice %></p>
<% end %>

<!-- <h1>你妹商品目录</h1> -->
<% if @products.count == 0 %>
	<h3>@_@ 未找到商品</h3>
<% end %>
<% @products.each do |product| %>
  <div class="entry">
    <%= link_to image_tag(product.image_url), line_items_path(:product_id => product), :method => :post, :remote => true %>


    <h3><%= link_to product.title, product, id:"product_title" %></h3>
    <p id='descrption'><%= product.description %></p>
    <div class="price_line">
      <span class="price"><%= number_to_currency(product.price) %></span>
	  <%= button_to '添加到购物车', line_items_path(:product_id => product, :user_id => session[:user_id]), :remote => true %>
	  
    </div>
  </div>

<% end %>
<p><%= will_paginate @products %></p>
